import java.util.InputMismatchException;
import java.util.Scanner;
import java.util.InputMismatchException;
public class RPG {

	
	public static void main(String[] args) {
	int enemyhealth;
	int herohealth;
	String name;
	int mana;
	 boolean firegirl;
	boolean fireball;
	boolean sword;
	boolean armor;
	int type = 0;
	int health;
	int orchp = 0;
	Scanner scan = new Scanner(System.in);
	RPG2 blah = new RPG2();
	RPG3 blah2 = new RPG3 ();
System.out.println("It all started with a shake");
System.out.println("After the shake a man awoke with a unknown woman standing next to him");
System.out.println("The confused man said: I dont remember my name? Whats my name?");
System.out.println("What would you like your name to be");
name = scan.nextLine();
System.out.println("Well Hello " + name);
System.out.println("Would you like to be a <1>mage or a <2> warrior");
try {
	type = scan.nextInt();
}
	 catch (InputMismatchException e) {
		System.out.println("That is not a choice");
	 }
  
blah.getType();
if (type== 1){
	 mana = 60;
	 health = 400;
	 System.out.println("Your health is " + health + "and your mana is " + mana);
	 System.out.println("Oh my! its an orc quick kill it!");
System.out.println("You only have one spell right now which is fireball");
	 blah2.fight1();
	
}else{
	 mana = 20;
	 health = 600;
	 System.out.println("Your health is " + health + "and your mana is " + mana);
		 
System.out.println("You only have one weapon which is an iron sword");
blah2.fight2();
	}
System.out.println("Helper: Good job defeating that orc but it looks like you need mana and healing: here i will give you a clarity and a healing potion");
System.out.println("Your health and mana are now full");
if (type == 1 ){
	health=400;
	mana = 60;
}
if (type == 2){
	health = 600;
	mana = 20;
}
}

}

